package com.basin.micro.admin.module.department.pojo.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
import lombok.Getter;

/**
 * @author: Sam ZHONG | sammy1997@aliyun.com
 */
@Getter
public enum DeptLevelEnum {
    DEPT_LEVEL_0(0, "企业"),
    DEPT_LEVEL_1(1, "一级部门"),
    DEPT_LEVEL_2(2, "二级部门"),
    DEPT_LEVEL_3(3, "三级部门"),
    DEPT_LEVEL_4(4, "四级部门"),
    DEPT_LEVEL_5(5, "五级部门"),
    ;
    @EnumValue
    private final Integer level;
    @JsonValue
    private final String label;

    @JsonCreator
    DeptLevelEnum(Integer level, String label) {
        this.level = level;
        this.label = label;
    }
}
